import 'package:flutter_shop/http/http.dart';
import 'package:flutter_shop/pages/base/common_result.dart';
import 'package:flutter_shop/pages/member/select_dept/entity/dept_info.dart';

/// Title:SelectDeptModel <br/>
/// Description: <br/>
/// author:xiemiao <br/>
/// date: 2020-04-16  <br/>
/// version 1.0 <br/>
class SelectDeptModel {
  ///获取部门tree
  Future<List<DeptInfo>> getDeptTree() async {
    CommonResult<List<DeptInfo>> result = await Http().post("http://mockapi.shandaiguanjia.com/mockapi/mock/1/getDeptTree");
    return result.data;
  }
}
